<?php
namespace app\api\controller;
require_once ROOT_PATH."extend/Gateway.php";
class Ceshi extends Common{

    public function index(){
        \Gateway::$registerAddress="0.0.0.0:1240";
//        $data['block_type'] = 0;
//        $data['headimgurl'] = "https://uploadfile.wo-shop.net/uploads/usernfo/20220630/f2c0a754e920c1823b73cd88ad0b12ee.png";
//        $data['integral'] = 0;
//        $data['member_rank'] = "普通";
//        $data['msg'] = "用户155****2637下单购买【女装夏季短装】";
//        $data['rank'] = "user";
//        $data['user_id'] = "1472";
//        $data['username'] = "23456";
//        $responseMsg['data'] = $data;
//        $responseMsg['msg'] = "获取成功";
//        $responseMsg['role'] = "user";
//        $responseMsg['type'] = "livesay";

        $data1['avatar'] = "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIl1LoVo2C1lNd6yDMKxkNd81Enrrdvlr99nKeJVa1qpZPTftE1KGKZ16Uhe5gtdElmGdcKNp02Jw/132";
        $data1['name'] = "155****2637";
        $data1['text'] = "购买【萨姆依 ins超火短袖T恤女夏2021夏季新款韩版宽松学生BF原宿港风半截袖oversize休闲上衣】";
        $data['type'] = "buygoods";
        $data['list'] = $data1;
        \Gateway::sendToGroup(2,json_encode($data));
    }
}